//
//  BeansShoppingCollectionViewCell.m
//  xiaoyiNew
//
//  Created by TW on 2017/2/12.
//  Copyright © 2017年 讯一. All rights reserved.
//

#import "BeansShoppingCollectionViewCell.h"

@implementation BeansShoppingCollectionViewCell
- (void)awakeFromNib {

    [super awakeFromNib];
    self.number = 1;
}
- (IBAction)action_leftButtonClick:(id)sender {
    self.number --;
}

- (IBAction)action_rightButtonClick:(id)sender {
    self.number ++;
}
- (void)setNumber:(NSInteger)number {

    if (number < 0) {
        _number = 0;
    }else {
    
        _number = number;
    }
    self.numLabel.text = [NSString stringWithFormat:@"%ld",_number];
    
}

@end
